package com.lc.user.express.httpserver;

import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2016/3/31.家居商品支付
 */
@HttpInlet(Net.GET_GOODS_PAY)
public class GetGoodsPay extends ZJDBAsyGet<Object> {
    public String mobile, name, address, userid, goodid, content, type;

    public GetGoodsPay(String mobile, String name, String address, String userid, String goodid, String content, String type, AsyCallBack listener) {
        super(listener);
        this.mobile = mobile;
        this.name = name;
        this.address = address;
        this.userid = userid;
        this.goodid = goodid;
        this.content = content;
        this.type = type;

    }

    @Override
    protected Object parser(JSONObject object) {
        if (object.optInt("message") == 1) {
            TOAST = "提交成功";
            return "1";
        } else {
            TOAST = "提交失败";
        }
        return null;
    }
}
